package com.lanou3g.mynewstest.base;

import android.app.Application;
import android.content.Context;

import cn.jpush.android.api.JPushInterface;
import de.greenrobot.event.EventBus;

/**
 * Created by dllo on 16/1/13.
 */
public class MyBaseApplication extends Application {
    public static Context context;

    @Override
    public void onLowMemory() {
        super.onLowMemory();
    }

    @Override
    public void onCreate() {
        super.onCreate();
        MyBaseApplication.context = getApplicationContext();
        JPushInterface.setDebugMode(true);
        JPushInterface.init(context);
    }

    public static Context getContext() {
        return context;
    }

}
